﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<GabageFactory.Models.Weather>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Weather
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <div id="dolphincontainer">
	    <div id="dolphinnav">
	        <ul class="top_tab">
	            <li><a href="/Stack/Index"><span>堆场管理</span></a></li>
                <li><a href="/Stack/Edit/<%=ViewData["id"] %>"><span>基本信息</span></a></li>
                <li><a href="javascript:return(false);" class="current"><span>气象信息</span></a></li>
                <li><a href="/Stack/Stack/<%=ViewData["id"] %>"><span>堆场信息</span></a></li>
                <li><a href="/Stack/Pool/<%=ViewData["id"] %>"><span>调节水池</span></a></li>
                <li><a href="/Stack/Material/<%=ViewData["id"] %>"><span>材料信息</span></a></li>
                <li><a href="/Stack/Settle/<%=ViewData["id"] %>"><span>沉降模型</span></a></li>
                <li><a href="/Stack/Piezometer/<%=ViewData["id"] %>"><span>测压井测压仪</span></a></li>
                <li><a href="/Stack/Drain/<%=ViewData["id"] %>"><span>导渗系统</span></a></li>
                <li><a href="/Position/List?type=1&stackId=<%=ViewData["id"] %>"><span>上传图片</span></a></li>
	        </ul>
	    </div>
	</div>
    <% using (Html.BeginForm(new { enctype = "multipart/form-data" }))
       {%>
        <%= Html.ValidationSummary(true) %>
            <%
           bool result = (bool)ViewData["success"];
           if(result){ %>
           <div class="tips_area">气象信息更新成功</div>
           <%}
            %>

            <table cellpadding="4" cellspacing="0" class="style_table3">
                <tr >
                    <th>月份</th>
                    <th>年最大降水量</th>
                    <th>年最小降水量</th>
                    <th>年平均降水量</th>
                    <th>年最大蒸发量</th>
                    <th>年最小蒸发量</th>
                    <th>年平均蒸发量</th>
                    <th>年最大蒸发量<br /><label style=" font-weight:normal;">（蒸发皿）</label></th>
                    <th>年最小蒸发量<br /><label style=" font-weight:normal;">（蒸发皿）</label></th>
                    <th>年平均蒸发量<br /><label style=" font-weight:normal;">（蒸发皿）</label></th>
                </tr>
                <%for (int i=0; i < 12; i++)
                    {
                %>

                <tr>
                    <td style="vertical-align:middle;font-size:14px; color:#111;"><%= Html.HiddenFor(model => model.Months[i].stack_id) %><%= Html.HiddenFor(model => model.Months[i].month_no) %><%=i+1 %>月</td>
                    <td><%= Html.TextBoxFor(model => model.Months[i].rainfall_max, new {style="width:50px" })%></td>
                    <td><%= Html.TextBoxFor(model => model.Months[i].rainfall_min, new { style = "width:50px" })%></td>
                    <td><%= Html.TextBoxFor(model => model.Months[i].ranfall_avg, new { style = "width:50px" })%></td>
                    <td><%= Html.TextBoxFor(model => model.Months[i].evaporation_max, new { style = "width:50px" })%></td>
                    <td><%= Html.TextBoxFor(model => model.Months[i].evaporation_min, new { style = "width:50px" })%></td>
                    <td><%= Html.TextBoxFor(model => model.Months[i].evaporation_avg, new { style = "width:50px" })%></td>
                    <td><%= Html.TextBoxFor(model => model.Months[i].pan_evaporation_max, new { style = "width:50px" })%></td>
                    <td><%= Html.TextBoxFor(model => model.Months[i].pan_evaporation_min, new { style = "width:50px" })%></td>
                    <td><%= Html.TextBoxFor(model => model.Months[i].pan_evaporation_avg, new { style = "width:50px" })%></td>
                </tr>

                <% } %>
                    
            </table>


    <div class="submit_btn_area" style="margin-left:64px;">
        <input type="submit" value="提 交" />
    </div>

    <% } %>


</asp:Content>
